const UPDATE_HEADER_HEIGHT = 'UPDATE_HEADER_HEIGHT';
const UPDATE_TAB_HEIGHT = 'UPDATE_TAB_HEIGHT';
const USER_INFO = 'USER_INFO';
const DOWNLOAD_APP = 'DOWNLOAD_APP';
const CUT_ZAWGYI = 'CUT_ZAWGYI';
const UPDATE_CART_NUM = 'UPDATE_CART_NUM';

const mutations = {
	// 更新头部高度
	[UPDATE_HEADER_HEIGHT](state, value) {
		state.headerHeight = value;
	},
	// 更新尾部高度
	[UPDATE_TAB_HEIGHT](state, value) {
		state.tabHeight = value;
	},
	// 更新用户信息
	[USER_INFO](state, value) {
		state.userInfo = value;
	},
	//下载app提示
	[DOWNLOAD_APP](state, value) {
		state.isShowDownloadApp = value;
	},
	//切换 ZAWGYI 字体
	[CUT_ZAWGYI](state, value) {
		state.isUseZAWGYI = value;
	},
	//更新购物车数量
	[UPDATE_CART_NUM](state, value) {
		state.goodsCartNum = value;
	},
}
export default mutations;